package com.dubbo.rpc.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author liuxin
 * @date 2021/10/10 9:45
 */
@Component
public class ConfigService {

    @Value("${zk.host}")
    private String zkHost;

    @Value("${rpc.load.balance.strategy}")
    private String loadBalanceStrategy;


    public String getZkHost() {
        return zkHost;
    }

    public String getLoadBalanceStrategy() {
        return loadBalanceStrategy;
    }
}
